<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css"/>
    <script type="text/javascript" src="/static/bootstrap/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/bootstrap/js/bootstrap.min.js"></script>
    <title>首页</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="panel panel-primary">
            <div class="panel-heading text-center">用户信息表</div>
            <span style="color:red">[[${msg}]]</span>
            <div class="panel-body">
                <table class="table table-bordered table-hover table-striped">
                    <tr>
                        <td>编号</td>
                        <td>用户名</td>
                        <td>用户密码</td>
                        <td>操作</td>
                    </tr>
                   <tr th:each=" u : ${users}">
                       <td th:text="${u.userid}"></td>
                       <td th:text="${u.username}"></td>
                       <td th:text="${u.userpwd}"></td>
                       <td>
                           <a class="btn btn-danger" th:href="@{/user/deleteUserById/}+${u.userid}">删除</a>
                       </td>
                   </tr>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>